import { ref, reactive } from 'vue';

export default function useTableData () {
  const columns = ref([
    {
      title: '序号',
      dataIndex: 'index',
      slotName: 'index'
      // width: 120,
    },
    {
      title: '标注单位',
      dataIndex: 'companyName',
      // width: 120,
    },
    {
      title: '可选名单',
      dataIndex: 'userName',
      slotName: 'userName'
      // width: 120,
    }
  ]);

  const pageObj = reactive({
    page: 1,
    pageSize: 10
  });

  return {
    columns,
    pageObj
  }
}